package com.gzhryc.system.dto;

import java.util.List;

import com.gzhryc.common.data.ITreeEntity;
import com.gzhryc.system.ManagerFastLoginUtils;
import com.gzhryc.system.dao.enums.MenuEnum;
import org.apache.commons.lang3.StringUtils;

public class MenuData implements ITreeEntity<MenuData,Long>{

	private static final long serialVersionUID = 1L;

	private Long id;
	private String icon;
	private String name;
	private Integer type;
	private String link;
	private Long parentId;
	private Integer priority;
	private String permission;
	private List<MenuData> children;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public String getLink() {
		return link;
	}
	public void setLink(String link) {
		this.link = link;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	@Override
	public Long getParentId() {
		return this.parentId;
	}
	@Override
	public List<MenuData> getChildren() {
		return this.children;
	}
	@Override
	public void setChildren(List<MenuData> children) {
		this.children = children;
	}
}
